import type { MockMethod } from 'vite-plugin-mock'

export default [
  {
    url: '/api/list/getData',
    method: 'get',
    response: () => {
      return {
        code: 200,
        data: [
          {
            key: "1",
            name: "张三",
            age: 18,
            avatar1: 'https://img1.baidu.com/it/u=3718036639,990528123&fm=253&fmt=auto&app=120&f=JPEG?w=800&h=800',
            hobby: '暂无',
          },
          {
            key: "2",
            name: "李四",
            age: 18,
            avatar1: 'https://img1.baidu.com/it/u=3718036639,990528123&fm=253&fmt=auto&app=120&f=JPEG?w=800&h=800',
            hobby: '暂无',
          },
          {
            key: "3",
            name: "王五",
            age: 18,
            avatar1: 'https://img1.baidu.com/it/u=3718036639,990528123&fm=253&fmt=auto&app=120&f=JPEG?w=800&h=800',
            hobby: '暂无',
          },
          {
            key: "3",
            name: "赵六",
            age: 18,
            avatar1: 'https://img1.baidu.com/it/u=3718036639,990528123&fm=253&fmt=auto&app=120&f=JPEG?w=800&h=800',
            hobby: '暂无',
          },
        ]
      }
    }
  },
  {
    url: '/api/list/getActionsData',
    method: 'get',
    response: () => {
      return {
        code: 200,
        data: [
          {
            key: "1",
            name: "张三2",
            age: 20,
            avatar1: '',
            hobby: '暂无',
          },
          {
            key: "2",
            name: "李四2",
            age: 20,
            avatar1: '',
            hobby: '暂无',
          },
          {
            key: "3",
            name: "王五2",
            age: 20,
            avatar1: '',
            hobby: '暂无',
          },
          {
            key: "3",
            name: "赵六2",
            age: 20,
            avatar1: '',
            hobby: '暂无',
          },
        ]
      }
    }
  }
] as MockMethod[]